//
//  BIgeyesRequest+HSC.m
//  RequestDemo
//
//  Created by 红沙尘 on 17/4/20.
//  Copyright © 2017年 红沙尘. All rights reserved.
//

#import "BIgeyesRequest+HSC.h"
#import "NSString+Extension.h"

@implementation BIgeyesRequest (HSC)

#pragma mark
/**
 23、图片上传
 
 URL: domain/image/upload
 
 请求方式： HTTPS POST
 
 请求参数：
 
 参数名	参数类型	是否必填	参数说明
 identityId	string	是	用户唯一身份标识
 imageFile	MultipartFile	是	照片文件
 fileMd5	string	是	校验上传图片的完整性
 */

+ (void)imageUploadWithIdentityId:(NSString *)identityId
                            image:(UIImage *)image {
    
}

#pragma mark 22、邀请
/**
 22、邀请
 
 FUNCTION: bigeye_friend_invite
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "identityId":"32d2ses2oioerwewer",
 "areaCode":86,
 "contacts":[
 {
 "name":"mike",
 "phoneNumber":"15695555485"
 }
 ]
 }
 }
 参数名称	参数类型	是否必填	参数描述
 identityId	string	是	用户唯一身份标识
 areaCode	int	是	国家区号
 contacts	array	是	邀请的通讯中联系人

 */

+ (void)friendInviteWithIdentityId:(NSString *)identityId
                          areaCode:(NSString *)areaCode
                          contacts:(NSArray *)contacts
                           success:(void (^)(NSDictionary *responseObject))success
                              fail:(void (^)(void))fail {

    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"identityId"] = identityId;
    param[@"areaCode"]   = areaCode;
    param[@"contacts"]   = contacts;
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_friend_invite"
                             param:param
                       thenSuccess:success fail:fail];
}
#pragma mark 21、设置项
/**
 21、设置项
 
 FUNCTION: bigeye_settings_set
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "identityId":"32d2ses2oioerwewer",
 "settings":{
 "is34G"：true/false,
 "sendNet":"3G4G/WIfI",
 "receiveNet":"3G4G/WIfI",
 "notification":true/false,
 "isAutoShare":true/false,
 "isAutoShareFullImage":true/false,
 "isShowPhoneNumber":true/false
 }
 }
 }
 参数名称	参数类型	是否必填	参数描述
 identityId	string	是	用户唯一身份标识
 settings	object	是	设置项
 */

+ (void)settingsSetWithIdentityId:(NSString *)identityId
                            is34G:(NSString *)is34G
                          sendNet:(NSString *)sendNet
                       receiveNet:(NSString *)receiveNet
                     notification:(NSString *)notification
                      isAutoShare:(NSString *)isAutoShare
             isAutoShareFullImage:(NSString *)isAutoShareFullImage
                isShowPhoneNumber:(NSString *)isShowPhoneNumber
                          success:(void (^)(NSDictionary *responseObject))success
                             fail:(void (^)(void))fail {
    
    NSDictionary *dict = @{@"is34G":is34G,
                           @"sendNet":sendNet,
                           @"receiveNet":receiveNet,
                           @"notification":notification,
                           @"isAutoShare":isAutoShare,
                           @"isAutoShareFullImage":isAutoShareFullImage,
                           @"isShowPhoneNumber":isShowPhoneNumber};
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"identityId"] = identityId;
    param[@"settings"]   = dict;
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_settings_set"
                             param:param
                       thenSuccess:success fail:fail];
}

#pragma mark 20、加好友
/**
 20、加好友
 
 FUNCTION: bigeye_friends_add
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "identityId":"32d2ses2oioerwewer",
 "uids":["RFFF"]
 }
 }
 参数名称	参数类型	是否必填	参数描述
 identityId	string	是	用户唯一身份标识
 uids	array	是	要添加为好友的用户平台id数组

 */
+ (void)friendsAddWithIdentityId:(NSString *)identityId
                            uids:(NSArray *)uids
                         success:(void (^)(NSDictionary *responseObject))success
                            fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"identityId"] = identityId;
    param[@"uids"]       = uids;
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_friends_add"
                             param:param
                       thenSuccess:success fail:fail];
}
#pragma mark 19、雷达搜索好友
/**
 19、雷达搜索好友
 
 FUNCTION: bigeye_friends_radar
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "identityId":"32d2ses2oioerwewer",
 "ssid":"aasss",
 "lat":"455525.2255",
 "lng":"455525.2255"
 }
 }
 参数名称	参数类型	是否必填	参数描述
 identityId	string	是	用户唯一身份标识
 ssid	string	否	wifi的ssid
 lat	string	是	经度
 lng	string	是	纬度
 */
+ (void)friendsRadarWithIdentityId:(NSString *)identityId
                              ssid:(NSString *)ssid
                               lat:(NSString *)lat
                               lng:(NSString *)lng
                           success:(void (^)(NSDictionary *responseObject))success
                              fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"identityId"] = identityId;
    param[@"ssid"]       = ssid;
    param[@"lat"]        = lat;
    param[@"lng"]        = lng;
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_friends_radar"
                             param:param
                       thenSuccess:success fail:fail];
}
#pragma mark 18、获取好友
/**
 18、获取好友
 
 FUNCTION: bigeye_friends_get
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "identityId":"32d2ses2oioerwewer"
 }
 }
 参数名称	参数类型	是否必填	参数描述
 identityId	string	是	用户唯一身份标识
 */
+ (void)friendsWithIdentityId:(NSString *)identityId
                      success:(void (^)(NSDictionary *responseObject))success
                         fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"identityId"] = identityId;
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_friends_get"
                             param:param
                       thenSuccess:success fail:fail];
}

#pragma mark 17、确认照片
/**
 17、确认照片
 
 FUNCTION: bigeye_photo_confirm
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "identityId":"32d2ses2oioerwewer",
 "deliverIds":["deliverId1", "deliverId2",...]
 }
 }
 参数名称	参数类型	是否必填	参数描述
 identityId	string	是	用户唯一身份标识
 deliverIds	array	是	确认的deliverId数组

 */
+ (void)photoConfirm:(NSString *)identityId
          deliverIds:(NSArray *)deliverIds
             success:(void (^)(NSDictionary *responseObject))success
                fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"identityId"] = identityId;
    param[@"deliverIds"] = deliverIds;
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_photo_confirm"
                             param:param
                       thenSuccess:success fail:fail];
}

#pragma mark 16、拒绝照片
/**
 16、拒绝照片
 
 FUNCTION: bigeye_photo_reject
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "identityId":"32d2ses2oioerwewer",
 "deliverIds":["deliverId1", "deliverId2",...]
 }
 }
 参数名称	参数类型	是否必填	参数描述
 identityId	string	是	用户唯一身份标识
 deliverIds	array	是	拒绝的deliverId数组

 */

+ (void)photoReject:(NSString *)identityId
         deliverIds:(NSArray *)deliverIds
            success:(void (^)(NSDictionary *responseObject))success
               fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"identityId"] = identityId;
    param[@"deliverIds"] = deliverIds;
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_photo_reject"
                             param:param
                       thenSuccess:success fail:fail];
}
#pragma mark 15、获取分享照片回执
/**
 15、获取分享照片回执
 
 FUNCTION: bigeye_photo_receipt
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "identityId":"32d2ses2oioerwewer"
 }
 }
 参数名称	参数类型	是否必填	参数描述
 identityId	String	是	用户唯一身份标识

 */
+ (void)photoReceiptWithIdentityId:(NSString *)identityId
                           success:(void (^)(NSDictionary *responseObject))success
                              fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"identityId"] = identityId;
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_photo_receipt"
                             param:param
                       thenSuccess:success fail:fail];
}

#pragma mark 14、获取待确认照片

/**
 14、获取待确认照片
 
 FUNCTION: bigeye_photo_receive
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "identityId":"32d2ses2oioerwewer"
 }
 }
 参数名称	参数类型	是否必填	参数描述
 identityId	String	是	用户唯一身份标识

 */

+ (void)photoReceiveWithIdentityId:(NSString *)identityId
                           success:(void (^)(NSDictionary *responseObject))success
                              fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"identityId"] = identityId;
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_photo_receive"
                             param:param
                       thenSuccess:success fail:fail];
}

#pragma mark 13、自动发送照片

/**
 13、自动发送照片
 
 FUNCTION: bigeye_photo_autosend 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "identityId":"32d2ses2oioerwewer",
 "imageKey":"IHNpbmd1bGFyIHBhc3Npb24gZn"
 }
 }
 参数名称	参数类型	是否必填	参数描述
 identityId	string	是	用户唯一身份标识
 imageKey	string	是	照片key

 */
+ (void)photoAutosendWithIdentityId:(NSString *)identityId
                           imageKey:(NSString *)imageKey
                            success:(void (^)(NSDictionary *responseObject))success
                               fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"identityId"] = identityId;
    param[@"imageKey"]   = imageKey;

    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_photo_autosend"
                             param:param
                       thenSuccess:success fail:fail];
}

#pragma mark 12、发送照片
/**
 12、发送照片
 
 FUNCTION: bigeye_photo_send
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "identityId":"32d2ses2oioerwewer",
 "image":{
 "fullKey":"image.jpg",
 "normalKey":"image.jpg"
 },
 "receivers":[
 {
 "uid":"122213",
 "contact":{
 "phoneNumber":"13596555245"
 },
 "faceId":"EDSSST"
 }
 ]
 }
 }
 */

+ (void)photoSendWithIdentityId:(NSString *)identityId
                          image:(NSDictionary *)image
                      receivers:(NSArray *)receivers
                        success:(void (^)(NSDictionary *responseObject))success
                           fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"identityId"] = identityId;
    param[@"image"]   = image;
    param[@"receivers"] = receivers;
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_photo_send"
                             param:param
                       thenSuccess:success fail:fail];
}


#pragma mark 11、搜索人脸
/**
 11、搜索人脸
 
 FUNCTION: bigeye_face_search
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "identityId":"32d2ses2oioerwewer",
 "image":{
 "imageBase64":"IHNpbmd1bGFyIHBhcb24gZn",
 "width":233,
 "height":433
 }
 }
 }
 参数名称	参数类型	是否必填	参数描述
 identityId	string	是	用户唯一身份标识
 image	object	是	图片对象
 */

+ (void)faceSearchWithIdentityId:(NSString *)identityId
                           image:(NSArray *)image
                         success:(void (^)(NSDictionary *responseObject))success
                            fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"identityId"] = identityId;
    param[@"image"]   = image;
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_face_search"
                             param:param
                       thenSuccess:success fail:fail];
}

#pragma mark 10、上传通讯录
/**

 
 FUNCTION: bigeye_contacts_upload
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "identityId":"32d2ses2oioerwewer",
 "areaCode":86,
 "contacts":[
 {
 "phoneNumber":"15695555485",
 "name":"zhangjin",
 "avatarBase64":"bGFyIHBhc"
 }
 ]
 }
 }
 参数名称	参数类型	是否必填	参数描述
 identityId	string	是	用户唯一身份标识
 areaCode	int	是	国家区号
 contacts	array	是	通讯录联系人

 */

+ (void)contactsUploadWithIdentityId:(NSString *)identityId
                            areaCode:(NSString *)areaCode
                            contacts:(NSArray *)contacts
                             success:(void (^)(NSDictionary *responseObject))success
                                fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"identityId"] = identityId;
    param[@"areaCode"]   = areaCode;
    param[@"contacts"]   = contacts;
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_contacts_upload"
                             param:param
                       thenSuccess:success fail:fail];
}

#pragma mark 9、退出

/*
 FUNCTION: bigeye_user_logout
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "sessionId":"ddd33332222jmmuuu"
 }
 }
 参数名称	参数类型	是否必填	参数描述
 sessionId	string	是	用户登录后sessionId

 */

+ (void)userlogoutWithSessionId:(NSString *)sessionId
                        success:(void (^)(NSDictionary *responseObject))success
                           fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"sessionId"] = sessionId;
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_user_logout"
                             param:param
                       thenSuccess:success fail:fail];
}

#pragma mark 8、获取最新token

/*
 获取最新token
 
 FUNCTION: bigeye_user_token_get
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "sessionId":"ddd33332222jmmuuu"
 }
 }
 参数名称	参数类型	是否必填	参数描述
 sessionId	string	是	用户登录后sessionId

 */

+ (void)tokenWithSessionId:(NSString *)sessionId
                   success:(void (^)(NSDictionary *responseObject))success
                      fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"sessionId"] = sessionId;

    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_user_token_get"
                             param:param
                       thenSuccess:success fail:fail];
}

#pragma mark 7、登录

/**
 7、登录
 
 FUNCTION: bigeye_user_login
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "areaCode":86,
 "phoneNumber":15695555485,
 "password":{
 "type":"CODE",
 "value":"400126"
 }
 }
 }
 参数名称	参数类型	是否必填	参数描述
 areaCode	int	是	国家区号，全部为数字
 phoneNumber	long	是	手机号，全部为数字
 password	object	是	登录密码
 password对象属性
 
 参数名称	参数类型	是否必填	参数描述
 type	string	是	密码类型 CODE:验证码; IMAGE:人脸
 value	string	是	验证码或图片base64
 */

+ (void)userLoginWithAreaCode:(NSString *)areaCode
                  phoneNumber:(NSString *)phoneNumber
                         code:(NSString *)code
                      success:(void (^)(NSDictionary *responseObject))success
                         fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"areaCode"]      = areaCode;
    param[@"phoneNumber"]   = phoneNumber;
    param[@"password"]      = @{@"type":@"CODE",@"value":code};
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_user_login"
                             param:param
                       thenSuccess:success fail:fail];
}

+ (void)userLoginWithAreaCode:(NSString *)areaCode
                  phoneNumber:(NSString *)phoneNumber
                  imageBase64:(NSString *)imageBase64
                      success:(void (^)(NSDictionary *responseObject))success
                         fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"areaCode"]      = areaCode;
    param[@"phoneNumber"]   = phoneNumber;
    param[@"password"]      = @{@"type":@"IMAGE",@"value":imageBase64};
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_user_login"
                             param:param
                       thenSuccess:success fail:fail];
}

#pragma mark 6、设置用户资料
/*
 6、设置用户资料
 
 FUNCTION: bigeye_user_profile_set
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "identityId":"ddd33332222jmmuuu",
 "nickname":"zhangsan"
 }
 }
 参数名	参数类型	是否必填	参数描述
 identityId	string	是	用户唯一身份标识
 nickname	string	是	平台用户昵称 中间可以有空格，两头无空格，长度限制200字节

 */

+ (void)userProfileSetWithIdentityId:(NSString *)identityId
                            nickname:(NSString *)nickname
                             success:(void (^)(NSDictionary *responseObject))success
                                fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"identityId"] = identityId;
    param[@"nickname"]   = nickname;
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_user_profile_set"
                             param:param
                       thenSuccess:success fail:fail];
}
#pragma mark 5、上传用户人脸
/*
 5、上传用户人脸
 
 FUNCTION: bigeye_user_face_upload
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "sessionId":"ddd33332222jmmuuu",
 "imageBase64":"IHNpbmd1bGFyIHBhcb24gZn",
 "imageType":"FRONT"|"LEFT"|"RIGHT"
 }
 }
 参数名	参数类型	是否必填	参数描述
 sessionId	string	是	用户登录后sessionId
 imageBase64	string	是	图片base64
 imageType	string	是	图片类型 FRONT:正面;LEFT:左侧脸;RIGHT:右侧脸

 */

+ (void)faceUploadsessionId:(NSString *)sessionId
                imageBase64:(NSString *)imageBase64
                  imageType:(NSString *)imageType
                    success:(void (^)(NSDictionary *responseObject))success
                       fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"sessionId"]     = sessionId;
    param[@"imageBase64"]   = imageBase64;
    param[@"imageType"]     = imageType;
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_user_face_upload"
                             param:param
                       thenSuccess:success fail:fail];
}

#pragma mark 4、人脸检测
/**
 FUNCTION: bigeye_face_detect
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "imageBase64":"IHNpbmd1bGFyIHBhcb24gZn"
 }
 }
 参数名	参数类型	是否必填	参数描述
 imageBase64	string	是	图片base64

 */

+ (void)faceDetect:(NSString *)imageBase64
           success:(void (^)(NSDictionary *responseObject))success
              fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"imageBase64"] = imageBase64;
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_face_detect"
                             param:param
                       thenSuccess:success fail:fail];
}

#pragma mark 注册
/**
 FUNCTION: bigeye_user_signup
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "areaCode":86,
 "phoneNumber":13345698578，
 "verificationCode":586655
 }
 }
 参数名	参数类型	是否必填	参数描述
 areaCode	int	是	国家区号,无空格,全部为数字
 phoneNumber	long	是	手机号
 verificationCode	int	是	验证码
 */

+ (void)userSignupAreaCode:(NSString *)areaCode
               phoneNumber:(NSString *)phoneNumber
                      code:(NSString *)code
                   success:(void (^)(NSDictionary *responseObject))success
                      fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"areaCode"]    = [NSString safeString:areaCode];
    param[@"phoneNumber"] = [NSString safeString:phoneNumber];
    param[@"verificationCode"] = [NSString safeString:code];
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_user_signup"
                             param:param
                       thenSuccess:success fail:fail];
}

#pragma mark 验证码
/**
 FUNCTION: bigeye_verify
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "areaCode":86,
 "phoneNumber":13345698578,
 "type":"VOICE"
 }
 }
 参数名	参数类型	是否必填	参数描述
 areaCode	int	是	国家区号,全部为数字
 phoneNumber	long	是	手机号,全部为数字
 type	string	是	验证码发送类型，VOICE/SMS

 */

+ (void)verifyAreaCode:(NSString *)areaCode
           phoneNumber:(NSString *)phoneNumber
                  type:(VerifyType)type
               success:(void (^)(NSDictionary *responseObject))success
                  fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"areaCode"]    = [NSString safeString:areaCode];
    param[@"phoneNumber"] = [NSString safeString:phoneNumber];
    
    if (type == VerifyType_SMS) {
        param[@"type"] = @"SMS";
        
    } else if (type == VerifyType_VOICE) {
        param[@"type"] = @"VOICE";
    }
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_verify"
                             param:param
                       thenSuccess:success fail:fail];
}

#pragma mark 手机号唯一验证
/**
 FUNCTION: bigeye_phone_number_check
 
 请求参数：
 
 {
 "apiVersion":"1.0",
 "params":{
 "areaCode":86,
 "phoneNumber":13345698578
 }
 
 }
 参数名	参数类型	是否必填	参数描述
 areaCode	int	是	国家区号,全部为数字
 phoneNumber	long	是	手机号,全部为数字
 */
+ (void)bigeye_phone_number_checkAreaCode:(NSString *)areaCode
                              phoneNumber:(NSString *)phoneNumber
                                  success:(void (^)(NSDictionary *responseObject))success
                                     fail:(void (^)(void))fail {
    
    NSMutableDictionary *param = @{}.mutableCopy;
    param[@"areaCode"]    = [NSString safeString:areaCode];
    param[@"phoneNumber"] = [NSString safeString:phoneNumber];
    
    [BIgeyesRequest requestWithApi:BIgeyesHost@"/bigeye_phone_number_check"
                             param:param
                       thenSuccess:success fail:fail];
}

@end







